home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / gopher / HTML.h.z / HTML.h
C/C++ Source or Header  |  1997-09-09  |  2KB  |  68 lines

  1. /********************************************************************
  2.  * $Author: drich $
  3.  * $Revision: 1.1 $
  4.  * $Date: 1995/10/03 04:07:57 $
  5.  * $Source: /proj/freeware1.0/gopher1.12/src/gopher/RCS/HTML.h,v $
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: HTML.h
  14.  * Header file for lame attempt at HTML
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: HTML.h,v $
  18.  * Revision 1.1  1995/10/03  04:07:57  drich
  19.  * gopher 1.2 check-in
  20.  *
  21.  * Revision 1.1  1992/12/10  23:32:16  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  * Revision 1.1  1992/12/10  06:16:51  lindner
  25.  * Initial revision
  26.  *
  27.  *
  28.  *********************************************************************/
  29.  
  30. #include "GDgopherdir.h"
  31. #include <stdio.h>
  32.  
  33. struct HTMLstruct {
  34.      GopherDirObj *Links;
  35.  
  36.      int          *Linklinenum;      /** Line # of the link **/
  37.      int          *Linklinepos;      /** line position of the link **/
  38.      int          Linkmaxsize;       /** Size of Links arrays **/
  39.  
  40.      FILE         *Filehtml;
  41.      FILE         *Filetxt;
  42.  
  43.      String       *Filehtmlname;
  44.      String       *Filetxtname;
  45.  
  46.      String       *Title;
  47. };
  48.  
  49. typedef struct HTMLstruct HTMLObj;
  50.  
  51. #define HTMLGetLink(a,b)  (GDgetEntry(((a)->Links),(b)))  /** Returns a GopherObj**/
  52. #define HTMLGetLinepos(a,b)    ((a)->Linklinepos[(b)])
  53. #define HTMLGetNumLinks(a)     (GDgetNumitems((a)->Links))
  54. #define HTMLGetLinenum(a,b)    ((a)->Linklinenum[(b)])
  55. #define HTMLGetLinkMax(a)      ((a)->Linkmaxsize)
  56. #define HTMLSetLinepos(a,b,c)  ((a)->Linklinepos[(b)] = (c))
  57. #define HTMLSetLinenum(a,b,c)  ((a)->Linklinenum[(b)] = (c))
  58. /** procedures defined in HTML.c **/
  59.  
  60. HTMLObj *HTMLnew( /*size*/);
  61. void     HTMLInit();
  62. void     HTMLDestroy();
  63. void     HTMLgrow();
  64. void     HTMLaddLink();
  65.  
  66.  
  67.  
  68.